/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Universidad de Almeria
 * License Type: Purchased
 */
package foroindaltronia.bd;

import java.util.List;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Usuario_registradoDetachedCriteria extends AbstractORMDetachedCriteria {
	public final StringExpression usuario;
	public final StringExpression email;
	public final StringExpression contrasena;
	public final StringExpression nombre;
	public final StringExpression apellidos;
	
	public Usuario_registradoDetachedCriteria() throws PersistentException {
		super("ForoIndaltronia.BD.Usuario_registrado", foroindaltronia.bd.Usuario_registradoCriteria.class);
		usuario = new StringExpression("usuario", this.getDetachedCriteria());
		email = new StringExpression("email", this.getDetachedCriteria());
		contrasena = new StringExpression("contrasena", this.getDetachedCriteria());
		nombre = new StringExpression("nombre", this.getDetachedCriteria());
		apellidos = new StringExpression("apellidos", this.getDetachedCriteria());
	}
	
	public Usuario_registrado uniqueUsuario_registrado(PersistentSession session) {
		return (Usuario_registrado) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Usuario_registrado[] listUsuario_registrado(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Usuario_registrado[]) list.toArray(new Usuario_registrado[list.size()]);
	}
}

